package com.gadgets.framework.fm03.repository;

import com.gadgets.framework.fm03.dto.BusiNodeQueryDTO;
import com.gadgets.framework.fm03.pojo.BusiNodeInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author UncleXiu
 * @version V1.0.1
 * @data 2021-01-28
 * 
 */
@Repository
@Mapper
public interface IBusiNodeInfoRepository {

    /**
     * 新增节点信息
     * @param nodeInfo  节点信息
     * @return          新增记录数
     */
    public int insertNodeInfo(@Param(value = "node") BusiNodeInfo nodeInfo);

    /**
     * 条件查询节点信息
     * @param queryDTO      查询条件
     * @return              查询结果
     */
    public List<BusiNodeInfo> selectBusiNodeInfoByCondition(@Param(value = "queryDto") BusiNodeQueryDTO queryDTO);

}
